<!--<?php var_dump($info); ?>-->  


        <div class="wrap">
            <div class="container">
                <div class="row">
                    <div id="secondary" class="col-md-2">
                        <nav class="list-group mt30">
                            <a href="{:U('index/settings/index')}" class="list-group-item active">
                                个人资料
                            </a>
                            <a target="_blank" href="{:U('index/settings/face')}"
                            class="list-group-item">
                                头像修改
                                <i style="line-height: 20px;font-size: 12px;color: #999;" class="pull-right fa fa-external-link-square">
                                </i>
                            </a>
                            <a href="{:U('index/settings/email')}" class="list-group-item">
                                Email 地址
                            </a>
                            <a href="{:U('index/settings/password')}" class="list-group-item">
                                密码修改
                            </a>
                            <a href="https://segmentfault.com/user/settings?tab=oauth" class="list-group-item">
                                第三方账号
                            </a>
                        </nav>
                        <nav class="list-group mt30">
                            <a href="https://segmentfault.com/user/settings?tab=notify" class="list-group-item">
                                通知和私信
                            </a>
                            <a href="https://segmentfault.com/user/settings?tab=card" class="list-group-item">
                                个性名片
                            </a>
                            <a href="https://segmentfault.com/user/settings?tab=block" class="list-group-item">
                                屏蔽名单
                            </a>
                            <a href="https://segmentfault.com/user/settings?tab=lab" class="list-group-item">
                                实验室功能
                            </a>
                        </nav>
                    </div>
                    <!-- end #secondary -->
                    <div id="main" class="settings col-md-10 form-horizontal">
                        <h2 class="h3 mt30 post-title">
                            个人资料
                        </h2>
                        <div class="row mt30">
                            <div class="col-md-3 col-md-push-9">
                                <!-- <img class="avatar-128" src="__PUBLIC__/img/user-256.png" alt="头像">
                                <div class="change-avatar">
                                    <input type="file" id="avatarFile" name="avatar" class="file hide">
                                    <button type="button" id="avatarBtn" class="btn btn-default btn-m mt10">
                                        修改头像
                                    </button>
                                    <p class="text-muted mt10">
                                        从电脑中选择图片上传, 图像大小不要超过 2 MB，长宽不要超过 3000 px
                                    </p>
                                </div>
                                <div class="change-avatar loading hidden">
                                    上传中
                                </div> -->
                            </div>
                            <div class="col-md-8 col-md-pull-3">
                                <form action="{:U('index/settings/update')}" method="post">
                                    <div class="form-group">
                                        <label for="name" class="required control-label col-sm-3">
                                            用户名
                                        </label>
                                        <div class="col-sm-9">
                                            <input name="username" type="text" maxlength="32" placeholder="用户名唯一" class="form-control"
                                            value="<?php echo $info['username'] ?>" required="">
                                            <span class="help-block mb0">
                                                用户名 90 天内只能修改一次
                                            </span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="setting-slug" class="required control-label col-sm-3">
                                            个性网址
                                        </label>
                                        <div class="col-sm-9">
                                            <input name="site" type="text" maxlength="32" id="setting-slug" placeholder="缩略名"
                                            data-do="checkUserSlug" class="form-control setting-slug" value="<?php echo $info['site'] ?>"
                                            required="">
                                            <code class="input-desc input-preview">
                                                segmentfault.com/u/
                                                <strong class="preview">
                                                    
                                                </strong>
                                            </code>
                                            <span class="error--slug ml10 hide">
                                                已存在
                                            </span>
                                            <span class="help-block mb0">
                                                个性网址 90 天内只能修改一次
                                            </span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-sm-3">
                                            性别
                                        </label>
                                        <div class="col-sm-9">
                                            <label class="radio-inline">
                                                <input name="sex" type="radio" id="sex-none" value="保密" <?php if($info['sex']=='保密') echo 'checked=""'?>>
                                                
                                                保密
                                            </label>
                                            <label class="radio-inline">
                                                <input name="sex" type="radio" id="sex-male" value="男" <?php if($info['sex']=='男') echo 'checked=""'?> >
                                                
                                                男
                                            </label>
                                            <label class="radio-inline">
                                                <input name="sex" type="radio" id="sex-female" value="女" <?php if($info['sex']=='女') echo 'checked=""'?>>
                                                
                                                女
                                            </label>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="setting-birthday" class="control-label col-sm-3">
                                            生日
                                        </label>
                                        <div class="col-sm-9">
                                            <input name="birthday" id="setting-birthday" type="text" placeholder="格式 YYYY-MM-DD"
                                            value="<?php echo $info['birthday'] ?>" class="form-control">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="setting-city" class="control-label col-sm-3">
                                            现居城市
                                        </label>
                                        <div class="col-sm-9">
                                            <!-- <input type="text" class="form-control hidden" data-cities="" id="setting-city"
                                            placeholder="如：杭州，国外城市可填 “海外”"> -->
                                            <div class="sf-typeHelper">
                                                <input type="text" data-role="sf_typeHelper-input" class="sf-typeHelper-input"
                                                placeholder="如：杭州，国外城市可填 “海外”" style="width: 16em;" name="city" value="<?php echo $info['city'] ?>">
                                                <ul class="sf-typeHelper-list dropdown-menu" style="display: none;">
                                                </ul>
                                            </div>
                                            <!-- <input type="hidden" name="city" value="<?php echo $info['city'] ?>"> -->
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="setting-address" class="control-label col-sm-3">
                                            通讯地址
                                        </label>
                                        <div class="col-sm-9">
                                            <input name="addr" id="setting-address" type="text" maxlength="32"
                                            placeholder="详细通讯地址" class="form-control" value="<?php echo $info['addr'] ?>">
                                            <span class="help-block">
                                                此地址将用于寄送纪念品以及活动报名使用，不会公开给第三方
                                            </span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="setting-homepage" class="control-label col-sm-3">
                                            个人网站
                                        </label>
                                        <div class="col-sm-9">
                                            <input name="psite" id="setting-homepage" type="text" placeholder="http://example.com"
                                            value="<?php echo $info['psite'] ?>" class="form-control mono">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="setting-description" class="control-label col-sm-3">
                                            自我简介
                                        </label>
                                        <div class="col-sm-9">
                                            <textarea name="introduce" id="setting-description" class="form-control mono"
                                            rows="6"><?php echo $info['introduce'] ?></textarea>
                                        </div>
                                    </div>
                                    <div class="form-action row">
                                        <div class="col-sm-offset-3 col-sm-9">
                                            <button class="btn btn-xl btn-primary profile-sub" type="submit">
                                                提交
                                            </button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        